[XM] Fix rmlabel filename assignment
authorAlastair Tse <atse@xensource.com>
Tue, 3 Oct 2006 10:24:48 +0000 (11:24 +0100)
committerAlastair Tse <atse@xensource.com>
Tue, 3 Oct 2006 10:24:48 +0000 (11:24 +0100)
The patch fixes a bug in the rmlabel tool.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/xen/xm/rmlabel.py

index 9cfdeae3500edd0dc69aa17c104f93ad0ba1bc4b..997a4f04f3c8b95d6e5a13430f6d6570b12b9f1b 100644 (file)
@@ -57,7 +57,8 @@ def rm_domain_label(configfile):
     fd = None
     file = None
     if configfile[0] == '/':
-        fd = open(configfile, "rb")
+        file = configfile
+        fd = open(file, "rb")
     else:
         for prefix in [".", "/etc/xen"]:
             file = prefix + "/" + configfile